package com.lizhijun.utils;

import org.springframework.stereotype.Component;

import java.util.List;

@Component("layui")
public class LayuiTransform<T> {

    private Integer code;
    private String msg;
    private Integer count;
    private List<T> data;


    public LayuiTransform(Integer code, String msg, List<T> data, Integer count){
        super();
        this.code = code;
        this.msg = msg;
        this.data = data;
        this.count = count;
    }
    public LayuiTransform()
    {
        super();
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public List<T> getData() {
        return data;
    }

    public void setData(List<T> data) {
        this.data = data;
    }
}
